const {merge} = require("webpack-merge")
const commonConfig = require("./webpack.config.common");
const path = require("path")
module.exports = merge(commonConfig, {
    mode: "development",
    devtool: "source-map",
    module: {
        rules: [
            {
                test: /\.(css|scss)$/,
                use: [
                    'style-loader',
                    'css-loader',
                    'sass-loader',
                ]
            }
        ]
    },
    devServer: {
        host: "0.0.0.0",
        hot: true,
        static: {
            directory: path.resolve(__dirname, "..", "static")
        }
    }
})